<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('BaseConfig/index')}">基本设置</a></li>
        <li><a href="{:url('BaseConfig/add')}">添加基本设置</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" action="{:url('BaseConfig/updateConfig')}" method="post">
    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th width="150">名称</th>
            <th width="200">属性</th>
            <th width="300">值</th>
            <th>描述</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">

            <tr>
                <td>
                    {$vo.title}
                </td>
                <td>
                    {$vo.key}
                <td>
                    <input style="display: none;" value="{$vo.val}"
                           data-url="{:url('BaseConfig/editPost', ['id' => $vo['id']])}" data-type="val" type="text"
                           class="settings-item form-control form-control-sm toggle-input">
                </td>
                <td>
                    {$vo.note}
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="table-actions">
        <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">更新缓存</button>
    </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>

</body>
</html>
